package com.gitee.minimalismstyle.fresh.flowable.api.config

import com.gitee.minimalismstyle.fresh.common.api.decoder.RDecoder
import feign.codec.Decoder
import org.springframework.beans.factory.ObjectFactory
import org.springframework.boot.autoconfigure.http.HttpMessageConverters
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
class FlowableFeignConfig(val messageConverters: ObjectFactory<HttpMessageConverters>) {

    @Bean
    fun getDecoder(): Decoder {
        return RDecoder(messageConverters)
    }
}